﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MMDemo
{
   
        public class BinTreeNode
        {
            public string data;
            public int x;
            public int y;
            public BinTreeNode lChild;//左子节点
            public BinTreeNode rChild;//右子节点

            public BinTreeNode(string data, BinTreeNode ln, BinTreeNode rn)
            {
                this.data = data;
                this.lChild = ln;
                this.rChild = rn;
            }

            public BinTreeNode(BinTreeNode ln, BinTreeNode rn)
            {
                this.data = "#";
                this.lChild = ln;
                this.rChild = rn;
            }

            public BinTreeNode(string data)
            {
                this.data = data;
                lChild = null;
                rChild = null;
            }

            public BinTreeNode()
            {
                data = "#";
                lChild = null;
                rChild = null;
            }

            
        }
    
}
